package com.class05.mapper;

import com.class05.pojo.Employee;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

public interface EmployeeMapper {
    //    通过id查询员工信息
    Employee findById(String column, Integer empId);
    Employee selectById( Integer empId);


    int addEmployee(Employee employee);

//    为几号员工设置奖金为1000
//    @Param 作用：给参数起别名并传递给sql语句中的占位符
//    int updateEmployee(@Param("empId") Integer empId, @Param("empSalary") Double empSalary);
    int updateEmployee( Integer empId, Double empSalary);


    int updateEmpByMap(Map<String, Object> map);
}
